
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Item;
import javax.microedition.lcdui.List;
import javax.microedition.lcdui.StringItem;
import javax.microedition.lcdui.TextBox;
import javax.microedition.lcdui.TextField;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author FFK
 */
public class Hightscoredetail  implements CommandListener{

    
    private int aInt;
   public readWriteFile rw= new  readWriteFile();
   private Command back ;
   public  Display d;
   public String score ="0";
   public StringItem item;
   private Form form; 
   public Menu menu;
    public Hightscoredetail(Display dp, Menu mn) {
        back = new Command("OK", Command.BACK , 1);
        d = dp;
        form = new Form("hight score"); 
//        rw.read(true);
        //score=rw.sc;
        item = new StringItem("score: ", score);
        form.append(item);
        form.addCommand(back);
        menu = mn;
        form.setCommandListener(this);
        
    }
    public void showhightscore(){
        d.setCurrent(form);
    }
    public void commandAction(Command cmnd, Displayable dsplbl) {
        if(cmnd == back) {
           d.setCurrent(menu);
        }
    }


}
